#pragma once

#include <linux/types.h>
#include <linux/time.h>

enum power_consumer_type
{
	idle = 0,
	wifi,
	bluetooth,
	audio,
	threeG,
	video,
	panel
};

extern void bm_logDeviceUsage(enum power_consumer_type devType, 
					  struct timespec usageTime);

extern void bm_logProcDeviceUsage(enum power_consumer_type devType, 
						  pid_t processID, 
						  struct timespec usageTime);
						  
#define BM_GET_START_TIME struct timespec ts = current_kernel_time();

#define BM_GET_DIFF_TIME timespec_sub(current_kernel_time(), ts)